package com.csdj.course.pojo;

import javax.persistence.*;

@Table(name = "course_price")
public class CoursePrice {
    @Id
    private Integer id;

    @Column(name = "course_id")
    private Integer courseId;

    private Double price;

    public CoursePrice() {
    }

    public CoursePrice(Integer courseId) {
        this.courseId= courseId;
    }

    public CoursePrice(Integer id, Integer courseId, Double price) {
        this.id = id;
        this.courseId = courseId;
        this.price = price;
    }

    /**
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * @return course_id
     */
    public Integer getCourseId() {
        return courseId;
    }

    /**
     * @param courseId
     */
    public void setCourseId(Integer courseId) {
        this.courseId = courseId;
    }

    /**
     * @return price
     */
    public Double getPrice() {
        return price;
    }

    /**
     * @param price
     */
    public void setPrice(Double price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return "CoursePrice{" +
                "id=" + id +
                ", courseId=" + courseId +
                ", price=" + price +
                '}';
    }
}